import { defHttp,jsonHttp } from '@/utils/http/axios';
import {
} from './model/deptModel';
import { BasicListResult, BasicDataResult } from '../model/baseModel';

import { ErrorMessageMode } from '#/axios';

enum Api {
  homeStatistics = '/jz/wm/statistics/homeStatistics'

}

/**
 * @description: user login api
 */
export function homeStatisticsApi(params: any, mode: ErrorMessageMode = 'modal') {
  return defHttp.post<BasicDataResult>(
    {
      url: Api.homeStatistics,
      params,
    },
    {
      errorMessageMode: mode,
    },
  );
}

